package de.unibi.mmi.homeauto.team1.constants;

public class BATH {
	public static final int SMOKE_ID = 0;
	public static final int WINDOW_ID = 1;
	public static final int DOOR_ID = 2;
	public static final int CURRENT_ROOM_TEMP_ID = 3;
	public static final int HEATING_ID = 4;
	public static final int SET_ROOM_TEMP_ID = 5;
	public static final int LAMP_1_ID = 6;
	public static final int LAMP_2_ID = 7;
	public static final int EFFLUX_ID = 8;
	public static final int CONFLUX_ID = 9;
	public static final int WATER_HEIGHT_ID = 10;
	public static final int WATER_TEMP_ID = 11;

	public static final int[] IDS = { BATH.SMOKE_ID, BATH.WINDOW_ID,
			BATH.DOOR_ID, BATH.CURRENT_ROOM_TEMP_ID, BATH.HEATING_ID,
			BATH.SET_ROOM_TEMP_ID, BATH.LAMP_1_ID, BATH.LAMP_2_ID,
			BATH.EFFLUX_ID, BATH.CONFLUX_ID, BATH.WATER_HEIGHT_ID,
			BATH.WATER_TEMP_ID };

	private static final float[] values = new float[12];

	public static final void setValue(int id, float value) {
		values[id] = value;
	}

	public static final float getValue(int id) {
		return id >= 0 && id <= 11 ? values[id] : -1;
	}
}
